package com.example.healthsystem.mapper;

import com.example.healthsystem.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Repository
@Mapper
public interface ReglistMapper {
// === insert ===
    // --- insert register list ---
    int insertList(reglist reglist);
// === delete ===
    // --- delete register list ---
    int deleteList(String name);// --- base on user's name
// === change ===
    // --- change unregnum/lastregtime
    int changeList(String name, int unregnum, Timestamp lastregtime);
// === search ===
    // --- search list on name
    reglist searchNameList(String name);

    // --- search all info
    List<reglist> searchAllList();
}
